using Churchtoolkit.Utils.BootStrapper;
using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.ServiceLocatorAdapter;

namespace Churchtoolkit.Utils.IoC
{
    public class UnityConfigurationBootStrapperTask : IBootstrapperTask
    {
        #region IBootstrapperTask Members

        public void Execute()
        {
            var container = new UnityContainer();
            ServiceLocator.SetLocatorProvider(() => new UnityServiceLocator(container));
        }

        #endregion
    }
}